﻿<%@ Page Title="" Language="VB" MasterPageFile="~/promocionVenta.master" AutoEventWireup="false"
CodeFile="consultaInmueblesEtapaVendidos.aspx.vb" Inherits="reportes_consultaInmueblesEtapaVendidos" %>

<%@ MasterType VirtualPath="~/promocionVenta.master" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajax" %>
<%@ Register Assembly="Flan.Controls" Namespace="Flan.Controls" TagPrefix="flan" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
<style type="text/css">
#txtBuscar
{
width: 299px;
}
.filaEncabezadoPrincipal
{
background-image: url('../imagenes/px_td.jpg');
width: 100%;
background-repeat: repeat;
}
.filaEncabezadoTitulo
{
background-image: url('../imagenes/submenu3.PNG');
background-repeat: repeat;
}
.filaEncabezado
{
background-image: url('../imagenes/submenu3.PNG');
width: 100%;
background-repeat: repeat;
}
.colGrilla
{
background-image: url('../imagenes/submenu2.PNG');
height: 20px;
background-repeat: repeat;
}
.style1
{
width: 151px;
}
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
<table style="width: 100%; background-color: #f4f4f4;" cellspacing="0">
<tr class="filaEncabezadoPrincipal">
<td>
<table width="100%">
<tr>
<td>
<asp:Label ID="Label1" runat="server" CssClass="CeldaTituloTexto" Text="Reporte de Inmuebles por Etapa -- Vendidos"></asp:Label>
</td>
</tr>
</table>
</td>
</tr>
</table>
<asp:Panel ID="pnlVendedores" runat="server" Width="100%">
<table style="width: 100%; background-color: #f4f4f4" class="EditarLabel" cellspacing="0"
border="1" cellpadding="0">
<tbody>
<tr>
<td>
<table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td class="filaEncabezado"><asp:Label ID="Label90" runat="server" Text="Búsqueda " Font-Bold="True" SkinID="lblSubTituloTexto"></asp:Label></td>
</tr>
<tr>
<td>
<table cellpadding="0" cellspacing="0" >
<tr>
<td align="right"></td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td align="right">&nbsp;&nbsp;</td>
<td align="right"></td>
<td>&nbsp;</td>
<td></td>
<td width="10">&nbsp;</td>
<td width="10"></td>
<td width="10"></td>
<td width="10"></td>
</tr>
<tr>
<td align="right"><asp:Label ID="Label8" runat="server" SkinID="lblNormal" Text="Tipo de Construcción :"></asp:Label></td>
<td>&nbsp;</td>
<td>
<asp:UpdatePanel ID="upTpoConstruccion" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<select id="selTpoConstruccion" runat="server" class="CssddlNormalObligatorio" name="selTpoConstruccion" tabindex="1"><option></option></select>
</ContentTemplate>
</asp:UpdatePanel>
</td>
<td align="right">&nbsp;</td>
<td align="right"><asp:Label ID="Label27" runat="server" SkinID="lblNormal" TabIndex="2" Text="Tipo de Inmueble :"></asp:Label></td>
<td>&nbsp;</td>
<td>
<asp:UpdatePanel ID="upTpoInmueble" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<select id="selTpoInmueble" runat="server" class="CssddlNormalObligatorio" name="selTpoInmueble" tabindex="3"><option></option></select>
</ContentTemplate>
</asp:UpdatePanel>
</td>
<td width="10">&nbsp;</td>
<td width="10"><asp:Button ID="btnBuscar" runat="server" OnClientClick="return validar();" SkinID="btnNormalSkin" Text="Buscar" /></td>
<td width="10"><asp:Button ID="btnLimpiar" runat="server" Text="Limpiar" SkinID="btnNormalSkin" /></td>
<td width="10"><asp:Button ID="btnExcel" runat="server" CausesValidation="False" SkinID="btnNormalSkin" Text="Excel" UseSubmitBehavior="False" /></td>
</tr>
<tr>
<td align="right"><asp:Label ID="Label9" runat="server" SkinID="lblNormal" Text="N° de Inmueble :"></asp:Label></td>
<td>&nbsp;</td>
<td>
<asp:UpdatePanel ID="upNroInmueble" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<input id="txtNroInmmueble" runat="server" autocomplete="off" type="text" class="CsstxtNormalObligatorio" maxlength="5" />
</ContentTemplate>
</asp:UpdatePanel>
</td>
<td align="right">&nbsp;</td>
<td align="right">&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td align="right">&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;&nbsp;</td>
<td align="right">&nbsp;</td>
<td align="right">&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<div style="width: 100%; height: 20px; scrollbar-face-color: #B5B5B5;" class="DivPanelGrillaEncabezado">
<table cellpadding="0" cellspacing="1" width="100%">
<tr>
<td align="center" valign="middle" width="8%" class="colGrilla"><asp:LinkButton ID="lnkBtnCorrelativo" runat="server" SkinID="lnkBtnEncabezado" CommandArgument="correlativo" CommandName="correlativo">Nº Correlativo</asp:LinkButton></td>
<td align="center" valign="middle" width="25%" class="colGrilla"><asp:LinkButton ID="lnkBtnInmueble" runat="server" SkinID="lnkBtnEncabezado" CommandArgument="EdificioTpoInmuebleModeloInmueble" CommandName="EdificioTpoInmuebleModeloInmueble">Descripción del Inmueble</asp:LinkButton></td>
<td align="center" valign="middle" width="9%" class="colGrilla"><asp:LinkButton ID="lnkBtnValorVenta" runat="server" SkinID="lnkBtnEncabezado" CommandArgument="valorVenta" CommandName="valorVenta">Precio Venta</asp:LinkButton></td>
<td align="center" valign="middle" width="10%" class="colGrilla"><asp:LinkButton ID="lnkBtnEstadoInmueble" runat="server" SkinID="lnkBtnEncabezado" CommandArgument="descEstadoInmueble" CommandName="descEstadoInmueble">Estado</asp:LinkButton></td>
<td align="center" valign="middle" width="8%" class="colGrilla"><asp:LinkButton ID="lnkBtnDNITitular" runat="server" SkinID="lnkBtnEncabezado" CommandArgument="nroDocumento" CommandName="nroDocumento">DNI Titular</asp:LinkButton></td>
<td align="center" valign="middle" width="16%" class="colGrilla"><asp:LinkButton ID="lnkBtnCliente" runat="server" SkinID="lnkBtnEncabezado" CommandArgument="NombresCompletos" CommandName="NombresCompletos">Nombre de Cliente</asp:LinkButton></td>
<td align="center" valign="middle" width="8%" class="colGrilla"><asp:LinkButton ID="lnkBtnDNIConyuge" runat="server" SkinID="lnkBtnEncabezado" CommandArgument="idVendedor" CommandName="idVendedor">DNI Conyugue</asp:LinkButton></td>
<td align="center" valign="middle" width="17%" class="colGrilla"><asp:LinkButton ID="LinkButton1" runat="server" SkinID="lnkBtnEncabezado" CommandArgument="NombresCompletos" CommandName="NombresCompletos">Nombre de Conyugue</asp:LinkButton></td>
</tr>
</table>
</div>
<div style="overflow-y: scroll; overflow-x: hidden; width: 100%; height: 470px; scrollbar-face-color: #B5B5B5;" class="DivPanelGrillaCuerpo">
<asp:UpdatePanel ID="upInmuebleXEtapa" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<asp:GridView ID="gvwInmueblexEtapa" runat="server" AutoGenerateColumns="False" BackColor="White" BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px" CellPadding="0" DataKeyNames="idUndInmob" EnableSortingAndPagingCallbacks="True" Font-Names="Tahoma" ForeColor="Black" GridLines="Vertical" ShowHeader="False" SkinID="gvwListaSkin" Width="99%">
<Columns>
<asp:TemplateField HeaderText="Correlativo">
<ItemTemplate>
<asp:LinkButton ID="lnkCodigoCorrelativo" runat="server" CausesValidation="False"
CommandArgument='<%# Eval("idUndInmob") %>' CommandName="Edit" ForeColor="Black"
Height="20px" Style="display: block; text-decoration: none;" Text='<%# Eval("correlativo","{0:00000}") %>'></asp:LinkButton>
</ItemTemplate>
<HeaderStyle HorizontalAlign="Center" Width="8%" Height="20px" />
<ItemStyle HorizontalAlign="Center" Width="8%" Height="20px" />
</asp:TemplateField>
<asp:TemplateField HeaderText="Inmuebles">
<ItemTemplate>
<asp:LinkButton ID="lnkInmuebles" runat="server" CausesValidation="False" CommandArgument='<%# Eval("idUndInmob") %>'
CommandName="Edit" ForeColor="Black" Height="20px" Style="display: block; text-decoration: none;"
Text='<%# Eval("EdificioTpoInmuebleModeloInmueble") %>'>
</asp:LinkButton>
</ItemTemplate>
<HeaderStyle HorizontalAlign="Center" Width="25%" Height="20px" />
<ItemStyle HorizontalAlign="Left" Width="25%" Height="20px" />
</asp:TemplateField>
<asp:TemplateField HeaderText="Precio Venta">
<ItemTemplate>
<asp:LinkButton ID="lnkPrecio" runat="server" CausesValidation="False" CommandArgument='<%# Eval("idUndInmob") %>'
CommandName="Edit" ForeColor="Black" Height="20px" Style="display: block; text-decoration: none;"
Text='<%# Eval("valorVenta","{0:###,##0.00}") %>'></asp:LinkButton>
</ItemTemplate>
<HeaderStyle HorizontalAlign="Center" Width="9%" Height="20px" />
<ItemStyle HorizontalAlign="Center" Width="9%" Height="20px" />
</asp:TemplateField>
<asp:TemplateField HeaderText="Estado">
<ItemTemplate>
<asp:LinkButton ID="lnkEstadoInmueble" runat="server" CausesValidation="False" CommandArgument='<%# Eval("idUndInmob") %>'
CommandName="Edit" ForeColor="Black" Height="20px" Style="display: block; text-decoration: none;"
Text='<%# Eval("descEstadoInmueble") %>'></asp:LinkButton>
</ItemTemplate>
<HeaderStyle HorizontalAlign="Center" Width="10%" Height="20px" />
<ItemStyle HorizontalAlign="Center" Width="10%" Height="20px" />
</asp:TemplateField>
<asp:TemplateField HeaderText="DNI Cliente">
<ItemTemplate>
<asp:LinkButton ID="lnkDniCliente" runat="server" CausesValidation="False" CommandArgument='<%# Eval("idUndInmob") %>'
CommandName="Edit" ForeColor="Black" Height="20px" Style="display: block; text-decoration: none;"
Text='<%# Eval("nroDocumento") %>'></asp:LinkButton>
</ItemTemplate>
<HeaderStyle HorizontalAlign="Center" Width="8%" Height="20px" />
<ItemStyle HorizontalAlign="Center" Width="8%" Height="20px" />
</asp:TemplateField>
<asp:TemplateField HeaderText="Nombre Cliente">
<ItemTemplate>
<asp:LinkButton ID="lnkCliente" runat="server" CausesValidation="False" CommandArgument='<%# Eval("idUndInmob") %>'
CommandName="Edit" ForeColor="Black" Height="20px" Style="display: block; text-decoration: none;"
Text='<%# Eval("nombreCompletosCliente") %>'></asp:LinkButton>
</ItemTemplate>
<HeaderStyle HorizontalAlign="Center" Width="16%" Height="20px" />
<ItemStyle HorizontalAlign="Center" Width="16%" Height="20px" />
</asp:TemplateField>
<asp:TemplateField HeaderText="DNI Conyuge">
<ItemTemplate>
<asp:LinkButton ID="lnkDniConyuge" runat="server" CausesValidation="False" CommandArgument='<%# Eval("idUndInmob") %>'
CommandName="Edit" ForeColor="Black" Height="20px" Style="display: block; text-decoration: none;"
Text='<%# Eval("nroDocumentoCy") %>'></asp:LinkButton>
</ItemTemplate>
<HeaderStyle HorizontalAlign="Center" Width="8%" Height="20px" />
<ItemStyle HorizontalAlign="Center" Width="8%" Height="20px" />
</asp:TemplateField>
<asp:TemplateField HeaderText="Nombre Conyugue">
<ItemTemplate>
<asp:LinkButton ID="lnkConyugue" runat="server" CausesValidation="False" CommandArgument='<%# Eval("idUndInmob") %>'
CommandName="Edit" ForeColor="Black" Height="20px" Style="display: block; text-decoration: none;"
Text='<%# Eval("nombreCompletosConyugue") %>'></asp:LinkButton>
</ItemTemplate>
<HeaderStyle HorizontalAlign="Center" Width="15%" Height="20px" />
<ItemStyle HorizontalAlign="Center" Width="15%" Height="20px" />
</asp:TemplateField>
</Columns>
</asp:GridView>
</ContentTemplate>
</asp:UpdatePanel>
</div>
</td>
</tr>
<tr style="visibility: hidden; display: none;">
<td>
<table style="width: 50%; cellpadding="0" cellspacing="0">
<tr>
<td width="1">
&nbsp;
</td>
<td>&nbsp;</td>
<td>&nbsp;&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td width="1">&nbsp;</td>
<td width="50px" colspan="2" style="width: 400px"><asp:Label ID="Label30" runat="server" SkinID="lblNormalNegrita" Text="Separación"></asp:Label></td>
<td width="100px">&nbsp;</td>
<td width="30px">&nbsp;</td>
<td width="300px">&nbsp;</td>
<td width="100px">&nbsp;</td>
</tr>
<tr>
<td width="1"></td>
<td width="50px">&nbsp;</td>
<td width="300px"><asp:Label ID="Label29" runat="server" SkinID="lblNormalNegrita" Text="Cantidad Total de Casa"></asp:Label></td>
<td width="100px"><asp:Label ID="lblCantidadTotalCasaDisponible" runat="server" SkinID="lblNormal">: 00</asp:Label></td>
<td width="30px">&nbsp;</td>
<td width="300px"><asp:Label ID="Label5" runat="server" SkinID="lblNormalNegrita" Text="Cantidad Total de Deposito"></asp:Label></td>
<td width="100px"><asp:Label ID="lblCantidadTotalDepositoDisponible" runat="server" SkinID="lblNormal">: 00</asp:Label></td>
</tr>
<tr>
<td width="1">&nbsp;</td>
<td width="50px">&nbsp;</td>
<td width="300px"><asp:Label ID="Label2" runat="server" SkinID="lblNormalNegrita" Text="Cantidad Total de Departamento"></asp:Label></td>
<td><asp:Label ID="lblCantidadTotalDepartamentoDisponible" runat="server" SkinID="lblNormal">: 00</asp:Label></td>
<td>&nbsp;</td>
<td><asp:Label ID="Label6" runat="server" SkinID="lblNormalNegrita" Text="Cantidad Total de Oficina"></asp:Label></td>
<td><asp:Label ID="lblCantidadTotalOficinaDisponible" runat="server" SkinID="lblNormal">: 00</asp:Label></td>
</tr>
<tr>
<td width="1">&nbsp;</td>
<td width="50px">&nbsp;</td>
<td width="300px"><asp:Label ID="Label3" runat="server" SkinID="lblNormalNegrita" Text="Cantidad Total de Estacionamiento"></asp:Label></td>
<td><asp:Label ID="lblCantidadTotalEstacionamientoDisponible" runat="server" SkinID="lblNormal">: 00</asp:Label></td>
<td>&nbsp;</td>
<td><asp:Label ID="Label7" runat="server" SkinID="lblNormalNegrita" Text="Cantidad Total de Otros"></asp:Label></td>
<td><asp:Label ID="lblCantidadOtrosDisponible" runat="server" SkinID="lblNormal">: 00</asp:Label></td>
</tr>
<tr>
<td width="1">&nbsp;</td>
<td width="50px">&nbsp;</td>
<td width="300px"><asp:Label ID="Label4" runat="server" SkinID="lblNormalNegrita" Text="Cantidad Total de Lavanderia"></asp:Label></td>
<td><asp:Label ID="lblCantidadTotalLavanderiaDisponible" runat="server" SkinID="lblNormal">: 00</asp:Label></td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td width="1">&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table>
</td>
</tr>
</tbody>
</table>
</asp:Panel>
<script language="javascript" type="text/javascript">
function validar() {
//if (document.getElementById('ctl00$ContentPlaceHolder1$selTpoConstruccion').selectedIndex == 0) {
//alert('Debe de seleccionar el tpo. de construcción.');
//document.getElementById('ctl00$ContentPlaceHolder1$selTpoConstruccion').focus();
//return (false);
//}
//}
}
</script>
</asp:Content>
